package com.example.shushiyunsst.fragment.main.home.child.miner.sub

import android.graphics.Color
import android.os.Bundle
import android.view.View
import androidx.appcompat.widget.Toolbar
import com.example.library_common.base.BaseFragmentEx
import com.example.shushiyunsst.R
/**
 * 制作星树
 * */
class MakeTreeFragment :BaseFragmentEx() {

    companion object{
        fun newInstance(): MakeTreeFragment {
            val args = Bundle()

            val fragment = MakeTreeFragment()
            fragment.arguments = args
            return fragment
        }
    }

    override fun getLayoutId()= R.layout.make_tree_fragment

    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)


        val mToolbar: Toolbar =view.findViewById(R.id.mToolbar)
        mToolbar.setTitle(R.string.make_tree)
        mToolbar.setNavigationOnClickListener { onBackPressedSupport() }

        loadRootFragment(R.id.topPanel,MakeTreeSettingFragment.newInstance())

        loadRootFragment(R.id.bottomPanel,MakeTreeFormFragment.newInstance())
    }

    override fun onBackPressedSupport(): Boolean {
        pop()
        return true
    }
}